package com.codejam.enums.demo.dto.req;

import com.codejam.enums.demo.dto.InnerClass;
import com.codejam.enums.demo.enums.WeekEnum;
import com.codejam.enums.demo.jackson.MapKeyWeekEnumDeserializer;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import java.util.List;
import java.util.Map;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author zss
 * @date 2022/6/10 9:20
 * @Email:451682479@qq.com
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class TestReq extends BaseReq {


    private WeekEnum week;

    @JsonDeserialize(keyUsing = MapKeyWeekEnumDeserializer.class)
    private Map<WeekEnum,Integer> weekMap;

    private List<WeekEnum> weeks;

    private InnerClass innerClassReq;
}
